package T12;

public class SendTask {
    private String  No;
    private double  weight;

    public SendTask(String no, double weight) {
        No = no;
        this.weight = weight;
    }

    public SendTask() {
    }

    public String getNo() {
        return No;
    }

    public double getWeight() {
        return weight;
    }

    public void setNo(String no) {
        No = no;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }
    public void  sendBefore(){
        System.out.println("订单开始处理，仓库验货中。。。");
        System.out.println("货物的重量："+weight);
        System.out.println("货物检验完成。");
        System.out.println("货物装车完成。");
        System.out.println("快递单号："+No);
    }
    public void send(Transportation t,GPS tools){
        System.out.println("运货人："+t.getAdmin());
        System.out.println("驾驶编号："+t.getNo());
        System.out.println("车辆型号："+t.getModel());
        System.out.println("货物的当前坐标："+tools.showXY());
    }
    public void sendAfter(Transportation t){
        System.out.println("货物运输任务已完成！");
        System.out.println("运货人："+t.getAdmin());
        System.out.println("所驾驶编号："+t.getNo());
        System.out.println("车辆型号："+t.getModel());
        System.out.println("已经归还！");
    }
}
